Test your skills through the online practice test: Microsoft .NET Quiz Online Practice Test

Related differences

Ques 21. What is the default accessibility for members of a struct?

Private

Is it helpful? Add Comment View Comments
 

Ques 22. Can the members of an interface be private?

No

Is it helpful? Add Comment View Comments
 

Ques 23. Methods must declare a return type, what is the keyword used when nothing is returned from the method?

Void

Is it helpful? Add Comment View Comments
 

Ques 24. Class methods to should be marked with what keyword?

Static.

Is it helpful? Add Comment View Comments
 

Ques 25. A class can have many mains, how does this work?

Only one of them is run, that is the one marked (public) static, e.g:
public static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
}
private void Main(string[] args, int i)
{
}

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: